package com.heima.model.common.dtos;

import lombok.Data;

@Data
public class MaterialPagereuestDto extends PageRequestDto
{
    private  Integer isCollection;

    public void checkParam() {
        if (this.page == null || this.page < 0) {
            setPage(1);
        }
        if (this.size == null || this.size < 0 || this.size > 100) {
            setSize(10);
        }
        this.isCollection=0;
    }
}
